package com.heima.leadnews.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.pojo.ApArticle;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ApArticleMapper extends BaseMapper<ApArticle> {
    List<ApArticle> load(@Param("size")Integer size, @Param("tag")String tag);

    List<ApArticle> loadmore(@Param("size")Integer size, @Param("tag")String tag, @Param("min")Date min);

    List<ApArticle> loadnew(@Param("size")Integer size, @Param("tag")String tag, @Param("max")Date max);
}
